<?php
namespace app\index\controller;

use think\Controller;
use think\Response\Json;
use think\Db;

/**
* 前台首页
*/
class Test extends Base
{
	public function _initialize() {
		parent::_initialize();

        $request                  = request();
        $params                   = $request->param();
        $cat_id                   = $request->has('cat_id');
        $id                       = $request->has('id');
        $k                        = $request->has('k');

        $this->params             = $params;
        $this->request            = $request;

	}

    public function test() {
        return $this->fetch();
    }

}
